home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HyperHackers.cpt / Hyper-Hackers Queue 1.0 / card_20129.txt < prev    next >
Text File  |  1989-02-26  |  2KB  |  77 lines

  1. -- card: 20129 from stack: in.0
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 3797
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 1
  9. ----- text -----
  10.  
  11. From: howard@cpocd2.UUCP (Howard A. Landman)
  12.  
  13. Date: 28 Feb 88 22:45:26 GMT
  14.  
  15. I posted this bug before, but it was buried in the middle of a long posting,
  16. and it's major, so I wanted to make sure it got seen.
  17.  
  18. BUG:
  19. The HyperTalk command
  20.  
  21. read from file f until newline
  22.  
  23. doesn't work.  It reads past a newline and stops about 31 or 32 characters
  24. into the file (in the case I tried).
  25.  
  26. REPEAT-BY:
  27. Grab the Go games data I posted to rec.games.go a week or so ago, or create a
  28. file which begins (each line below ends with a newline):
  29. ---->8 CUT HERE 8<------
  30. Date: 1579? to 1587?
  31. White: Honinbo Sansa
  32. Black: Kashio Rigen
  33. Score: +1
  34. Komi: 0
  35. Result: +1
  36. Source: Go Review, Autumn 1973, p.54-61 
  37.  
  38. Date: 1585 to 1650 ??
  39. White: Kuo Pai-ling
  40. Black: Chou Lan-yu
  41. Handicap: 2-2 (tasuki)
  42. Score: -0.5 C
  43. Komi: 0
  44. Result: -0.5 C
  45. Source: GW #28, Summer 1982, p.63-65 
  46.  
  47. ---->8 CUT HERE 8<------
  48. Then put that file on your Mac, go into HyperCard, and either type the
  49. following commands into the message box or put them into a script (with
  50. the obvious modifications):
  51.  
  52. open file "foo"
  53. read from file "foo" until newline
  54. it
  55.  
  56. What *I* got was:
  57.  
  58. "Date: 1579? to 1587?\nWhite: Hon"
  59.  
  60. where, in normal C notation, the \n represents a newline.  In HC this shows
  61. up as a square (no bitmap for that character in the font).
  62.  
  63. I know that the end-of-line character is a newline, both because I have looked
  64. at it in UNIX, and because the file was created *by* *HyperCard* with a
  65. newline constant after each line.
  66.  
  67. WILD, WILD GUESS AS TO WHAT'S GOING ON:
  68. If this portion of HyperCard was written in C, is it possible that someone
  69. accidentally typed 'n' instead of '\n' at some point?  That would explain
  70. why it stopped on an 'n'.  (That should be easy to test, but I'm not getting
  71. paid to do this.)
  72.  
  73.  
  74.  
  75. -- part contents for background part 45
  76. ----- text -----
  77. HyperCard bug